export default {
  namespaced: true,
  state: {
    age: 2000,
  },
  getters: {
    changge(state) {
      return state.age + 5;
    },
  },
  mutations: {
    add(state, data) {
      state.age += data;
    },
    app(state, data) {
      state.age += data;
    },
  },
  actions: {
    addAge({ commit }, data) {
      setTimeout(() => {
        commit("add", data);
      }, 1000);
    },
    nmnmmn({ commit }, data) {
      setTimeout(() => {
        commit("add", data);
      }, 1000);
    },
  },
  modules: {
    header: {
      namespaced: true,
      state: {
        akk: 50,
      },
    },
  },
};
